<?php
class SiteAdminController extends ManageBaseController
{
	var $usertype = USER_TYPE_ADMIN;
    public function _initNavigation()
    {
 		$sModule = $this->getRequest()->getModuleName();
        $pages = array(
            array(
            	'module' => $sModule,
                'controller'	=> 'country',
                'action'    	=> 'index',
                'label'         => _('Страны'),
            ),
            array(
            	'module' => $sModule,
                'controller' 	=> 'region',
                'action'        => 'index',
                'label'         => _('Регионы'),
            ),
            array(
            	'module' 		=> $sModule,
                'controller'	=> 'city',
                'action'        => 'index',
                'label'         => _('Города'),
            ),
            array(
            	'module' => $sModule,
                'controller' 	=> 'location',
                'action'        => 'index',
                'label'         => _('Районы'),
            ),
            array(
            	'module' => $sModule,
                'controller'=> 'object-type',
                'action'	=> 'index',
                'label' 	=> _('Типы объектов'),
            ),
            array(
            	'module' 	=>	'',
                'controller'=>	'auth',
            	'params' 	=>	array(
            					'logout' => 'yes'
            					),
                'label'  	=> _('Выход'),
            ),
        );
 
        $container = new Zend_Navigation($pages);
        Zend_Registry::set('Zend_Navigation', $container);
    }	
}

